package com.matrix.java.chap_09.exercise;

public class EX9_23 {
    public static void main(String[] args) {
        Count myCount = new Count();
        System.out.println(myCount.count);
        int times = 0;
        for (int i = 0; i < 100; i++) {
            increment(myCount, times);
            System.out.println(myCount.count);
        }
        System.out.println("count is " + myCount.count);
        System.out.println("times is " + times);
    }

    public static void increment(Count c, int times) {
        c.count++;
        times++;
    }
}
